package com.upcode.weighing.domain;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.upcode.weighing.base.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

//员工-组织
@Data
@EqualsAndHashCode(callSuper=false)
public class SysOrgUser extends BaseEntity {

    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;//组织-用户ID
    @JsonSerialize(using= ToStringSerializer.class)
    private Long userId;//用户ID
    @JsonSerialize(using= ToStringSerializer.class)
    private Long orgId;//所在组织ID公司
    @JsonSerialize(using= ToStringSerializer.class)
    private Long orgId2;//所在组织ID部门
    @JsonSerialize(using= ToStringSerializer.class)
    private Long orgId3;//所在组织ID岗位
    private String userCode;//用户编码
    private String img1;//用户电子照片(file表中的ID，多个用逗号隔开)
    private String img2;//用户证书照片(file表中的ID，多个用逗号隔开)
    private LocalDateTime createTime;//创建时间
    private LocalDateTime updateTime;//修改时间
}
